#ifndef MODBUSCONTROL_H
#define MODBUSCONTROL_H

#include <QObject>
#include "SerialBase.h"



class ModbusControl:public SerialBase
{
public:
    explicit ModbusControl();
    void InitDevice();

    virtual QStringList ScanSerial() override;
    ///
    virtual std::string SendUntilRec(const char *sendBuf,int msecs = 3000) override;
    ///
    virtual bool GetOpened() override;


    ///
    virtual int CloseSerial() override;

    virtual void OpenPort(const char *port,int bau) override;//Open
    ///
    virtual void SendBuff(const char *sendBuf) override;

    virtual bool ReadBuff() override;
};

#endif // MODBUSCONTROL_H
